<template>
	<view>
		<view class="title_view">
			{{title}}
		</view>
		<sunny-video ref="sunnyVideo" :title="title" :src="tutorial" :poster="posterImg" @timeupdate="timeupdate" />



		<u-tabbar v-model="current" :height="100" :list="list"></u-tabbar>
	</view>
</template>

<script>
	export default {
		// poster: require("@/static/face.jpg")
		data() {
			return {
				title: "视频教学", //视频名称
				tutorial: "http://test.dowell-driver.com/wdzs", //视频地址
				posterImg: "", //视频封面
				list: [{
						pagePath: "/pages/student/index/index",
						iconPath: "/static/tabbar/tab_home_normal.png",
						selectedIconPath: "/static/tabbar/tab_home_select.png",
						text: '首页',
					},
					{
						pagePath: "/pages/student/order/index",
						iconPath: "/static/tabbar/tab_order_normal.png",
						selectedIconPath: "/static/tabbar/tab_order_select.png",
						text: '订单',
					},
					{
						pagePath: "/pages/student/my/index",
						iconPath: "/static/tabbar/tab_mine_normal.png",
						selectedIconPath: "/static/tabbar/tab_mine_select.png",
						text: '我的',
					},
				],
				current: 0
			}
		},
		onLoad(options) {
			console.log(options, "onLoadonLoadonLoadonLoadonLoad");
			if (options.tutorial) {
				this.tutorial = this.tutorial + JSON.parse(options.tutorial)
				this.title = JSON.parse(options.title)
			}
			console.log(this.tutorial, 'tutorial');

			// const mdetailInfo=options.detailInfo;
			// console.log("取参数： " + mdetailInfo);
			// const detailInfoitem = JSON.parse(mdetailInfo);
			// console.log("接收到的参数", this.detailInfoitem);
			// this.title = options.title
			// this.src = options.url
			// const res = uni.getSystemInfoSync()

		},
		methods: {
			timeupdate(e) {}
		}
	}
</script>

<style>
	.title_view {
		width: 100%;
		text-align: center;
		font-size: 24px;
		padding: 20px;
	}
</style>